package com.simou.service;

import com.simou.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    User getUser(String userCode, String userPassword);

    List<User> getUsersByLimit(@Param("start") int start, @Param("pageSize") int pageSize, @Param("queryUserRole") Long queryUserRole, @Param("queryName") String queryName);

    int getUsersCount(@Param("queryUserRole") Long queryUserRole,@Param("queryName") String queryName);

    int addUser(User user);

    int updateUser(@Param("uid") long uid,User user);

    int deleteUser(long uid);

}
